package com.kingmed.kmss.common.constant.bpmn;

public class ProcessConstant {

	// 模块/功能类型，用以区分并调用不同模块的回调接口
	public static class BusinessType {
		
		// 营销活动
		public static String MKT_ACTIVITY = "mkt-act";
		// 销售区域
		public static String SAM_REGION = "sam-region";
		// 投标资料审批
		public static String OPM_BID_DOC = "opm-bid-doc";
		// 标书审批
		public static String OPM_BID_APPROVAL = "opm-bid";
		// 合同审批-签定
		public static String CTM_CONTRACT_SIGNUP = "ctm-contract-signup";
		// 合同审批-续签(通过商机续签)
		public static String CTM_CONTRACT_RENEW = "ctm-contract-renew";
		// 合同审批-续签（通过合同续签）
		public static String CTM_RENEWAL_BY_CONTRACT = "ctm-renewal-by-contract";
		// 合同审批-变更
		public static String CTM_CONTRACT_CHANGE = "ctm-contract-change";
		// 特殊结算-合并开票
		public static String SPECIAL_SETTLE_MERGE_INVOICE = "ctm-special-settle-merge-invoice";
		// 促销活动
		public static String PROMOTION_ACTIVITY = "sales-ptm-act";
	}

	// 流程标识-用于区分不同的审批流程
	public static class ProcessKey {
		//专家档案
		public static String ERM_EXPERT_CREATE_PROC = "erm_exp_create_proc";
		//专家合作申请
		public static String ERM_EXPERT_APP_CREATE_PROC = "erm_app_create_proc";
		//销售区域审批
		public static String SAM_REGION_PROC = "sam_region_process";
		// 投标资料审批
		public static String OPM_BID_DOC_PROC = "opm_bid_doc_apply";
		// 标书审批
		public static String OPM_BID_APPROVAL_PROC = "opm_bid_approval";
		// 合同审批
		public static String CTM_CONTRACT_APPROVAL_PROC = "sales_contract_approval";
		// 特殊结算-合并开票
		public static String SPECIAL_SETTLE_MERGE_INVOICE = "special_settle_merge_invoice";
		// 促销合同审批
		public static String CTM_SALES_PROMOTION_APPROVAL_PROC = "ctm_sales_promotion_approval";
		// 合同延期审批
		public static String CTM_CONTRACT_RENEWAL_PROC = "ctm_contract_renewal_approval";
	}

	// 流程审批状态
	public static class Status {

		// 草稿
		public static final Integer DRAFT = 0;
		// 已提交待审批 - 新审批中
		public static final Integer SUBMITTED = 1;
		// 审批中
		public static final Integer APPROVING = 1;
		// 审批驳回
		public static final Integer REJECTED = 3;
		// 审批通过
		public static final Integer APPROVED = 4;
	
	}
	

	public static class DictCode {
		
		// 流程审批事务类型
		public static String PROCESS_BUSINESS_TYPE = "process_business_type";
		
	}
	
	
}
